
package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 更改订单状态
 */
@Data
@ApiModel(description = "更改订单状态参数")
public class OrderUpdateStatusForm  {

    @ApiModelProperty(value = "订单Id", position = 1, required = true)
    @NotNull(message = "订单Id不能为空 ")
    private Long id;

    @ApiModelProperty(value = "订单状态( 0初始 1取消 2完成)", position = 2, required = true)
    @NotNull(message = "订单状态不能为空 ")
    @Range(min = 0, max = 2, message = "状态值范围：0~2 ")
    private Integer status;
}
